package main

import (
	"fmt"
	"time"
)

func work(work int,c chan int){
	for{
		fmt.Printf("work:%d,chan get :%c \n",work,<-c)
	}
}


func main(){
	var works  [10]chan int
	for i:=0;i<10;i++{
		works[i]=make(chan int)
	}

	for i:=0;i<10;i++{
		go work(i,works[i])
	}

	for i:=0;i<10;i++{
		works[i]<-'a'
	}

	time.Sleep(time.Microsecond)

}
